package com.ziqikeji.xianyan.enumeration;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 是否标记 枚举
 *
 * @author liuyu
 */
@SpringEnum
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum YesOrNoEnum {
    /**
     * 标记未删除
     */
    YES("是"),
    /**
     * 标记删除
     */
    NO("否");

    private String id;
    private String text;

    YesOrNoEnum(String text) {
        this.text = text;
    }

    public String getId() {
        return this.name();
    }

    public String getText() {
        return this.text;
    }

    @Override
    public String toString() {
        return this.name();
    }
}
